package com.kelvin.paopao.injector.modules;

import com.kelvin.paopao.adapter.WalletDetailAdapter;
import com.kelvin.paopao.injector.PerActivity;
import com.kelvin.paopao.module.market.wallet.detail.WalletDetailActivity;
import com.kelvin.paopao.module.market.wallet.detail.WalletDetailPresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by MCK on 2017/5/23.
 */

@Module
public class WalletDetailModule {
    private WalletDetailActivity mView;

    public WalletDetailModule(WalletDetailActivity view) {
        this.mView = view;
    }

    @PerActivity
    @Provides
    public WalletDetailPresenter providePresenter() {
        return new WalletDetailPresenter(mView);
    }

    @PerActivity
    @Provides
    public WalletDetailAdapter provideAdapter() {
        return new WalletDetailAdapter(mView);
    }
}
